import { createRouter, createWebHashHistory, createWebHistory, RouteRecordRaw } from 'vue-router'
import Login from "@/views/Login.vue";
import noFind from "@/views/NoFind.vue"

const routes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'login',
    component: Login
  },
  {
    path: "/largeScreen",
    name: "largeScreen",
    component: () => import( "../views/LargeScreen/index.vue")
  },
  {
    path: '/:pathMatch(.*)',            //其他路由显示404
    component: noFind,
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
